﻿@using MvcContrib.UI.Grid
@model IEnumerable<MyPetShop.Service.ValueObject.ProductInfo>
@{
    ViewBag.Title = "Products";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="ym-wrapper">
    <h2>Products</h2>
    @Html.Grid(Model).Columns(column => {
        column.For(pro => pro.ProductID);
    	column.For(pro => Html.ActionLink(pro.Name,"Index","Items",new {area="ItemSelect",Product=pro.Name},null)).Named("Name");
    	column.For(pro => pro.Description);
    })
</div>


